//define(['angular', 'services'], function (angular, services){
//   angular.module('csp-aoss.directives', ['csp-aoss.services']).directive('appVersion', ['version', function(version){
//       return function(scope, elm, attrs){
//           elm.text(version);
//       }
//   }])
//});
//
//'use strict';

define(['angular', 'services'], function (angular, services) {

    /* Directives */

    angular.module('resource.directives', ['resource.services'])
        .directive('optionRepeat', ['maxOption', function(maxOption) {
        	var directive = {};
        	directive.replace=   true,  
            directive.restrict = 'E'; /* restrict this directive to elements */
        	var temp = "<li>";
        	var option = ["A","B","C","D","E","F","G","H","I"];
        	
        	for(var i =0 ;i<maxOption;i++){
        		var str = "<input type='radio' class='check' value='0'/><span class='mcru_span2'>"+option[i]+"</span>";
        		temp += str;
        	}
            
        	temp += "</li>";
        	directive.template = temp;
            return directive;
        }]);
});
